import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/app_config_entity.dart';

AppConfigEntity $AppConfigEntityFromJson(Map<String, dynamic> json) {
  final AppConfigEntity appConfigEntity = AppConfigEntity();
  final String? config = jsonConvert.convert<String>(json['config']);
  if (config != null) {
    appConfigEntity.config = config;
  }
  return appConfigEntity;
}

Map<String, dynamic> $AppConfigEntityToJson(AppConfigEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['config'] = entity.config;
  return data;
}

extension AppConfigEntityExtension on AppConfigEntity {
  AppConfigEntity copyWith({
    String? config,
  }) {
    return AppConfigEntity()
      ..config = config ?? this.config;
  }
}